<!-- 分组列表 -->
<template>
  <div class="warp">
    <a-radio-group :value="belongId" @change="onChange">
      <a-radio v-for="group in groupList" :value="group.id" :key="group.id">{{
        group.name
      }}</a-radio>
    </a-radio-group>
  </div>
</template>

<script>
import { mapGetters, mapActions } from 'vuex'

export default {
  props: ["groupList"],
  components: {
  },
  data() {
    return {
      value: undefined,
    };
  },
  computed: {
    ...mapGetters(['belongId', 'isAlbumDel'])
  },
  watch: {},
  methods: {
    ...mapActions(['GetGroupList', 'GetPhotoAlbum']),
    onChange(e) {
      this.$emit("groupChange", e.target.value);
    },
    
  },
  created() {},
  mounted() {},
};
</script>
<style scoped lang="less">
  .warp{
    display: flex;
    justify-content: space-between;
    .mr{
      margin-right: 10px;
    }
  }
</style>
